package com.x.Part6_personDemo;


/**
 * ClassName: Person
 * Package: IntelliJ IDEA
 * Description:
 * Written by HanXu
 * Create 2023/9/15 21:25
 */

public class Person {
    String name;
    int age;
    String gender;

    public int showAge(){
        return age;
    }

    public void addAge(int a){
        age += a;
        System.out.println(name + "如今的年龄是" + age);
    }


}
